import axios from 'axios';
// 请求拦截
axios.interceptors.request.use(config => {
    return config;
}, err => {
    console.log(err)
})
// 响应拦截
axios.interceptors.response.use(response => {
    return response
}, err => {
    console.log(err)
})

let Requset = (info) => {
    return new Promise((resolve, reject) => {
        axios({ ...info }).then(res => resolve(res)).catch(err => reject(err))
    })
}
export default Requset ;
